import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import CButton from './components/HomeView.vue/button.vue'
import Ccolumn from './components/HomeView.vue/column.vue'
//设置反向代理，前端请求默认发送到 http:/ / 前端ip地址: 你的前端端口 / api
import axios from "axios";
// var axios = require('axios')
axios.defaults.baseURL = '/api'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component('CButton', CButton).component('Ccolumn', Ccolumn).use(router).mount('#app')
